Find & Replace Dialog Boxes
Previous  Top  Next


If the selected text is between 2 and 255 characters long and the "Find Word at Cursor" option is set, it is placed in the Find field of the dialog box when it is opened (special characters are automatically replaced by their respective tokens – see below). Otherwise, the last searched item is displayed in the field. Searching always starts from the cursor position, unless you specify "All" in the Search field! If the scope is limited to the current document, selected text is more than 30 characters and at least twice as large as the search criteria, then Find/Replace will only search within the selected text.

Double-clicking in an empty area of the dialog box will move the cursor to the beginning or the end (depending on the search direction) of the current document. The Find/Replace tool will ask you if you want to resume a search from the beginning of a document if no match is found. Note that you can set the font of the Find/Replace fields in the corresponding dialog boxes: right click on the Find or Replace field in the dialog box to open the shortcut menu with the Font command.

Put a checkmark in the Regular Expression checkbox if you want to define the search criteria as a regular expression.

Tip: You can quickly copy text from the Find field to the Replace field by double-clicking on the "Replace with" label.

The Find and Replace dialog boxes accept tokens to represent special characters:

^T = Tab ($09)
^B = Page break ($0C)
^P = Paragraph (carriage-return/line-feed pair)

The following are not available in NoteTab Pro:

^C = Carriage-return ($0D)
^L = Line-feed ($0A)

If you actually need to search characters that correspond to one of the tokens, just precede it with an extra ^ symbol (for example ^^T to search for ^T).

Note that these tokens are not applicable when you perform regular expression searches.

When you paste text into the find/replace fields, NoteTab automatically converts special characters into their corresponding tokens. This feature takes into account the regular expression setting. If the Regular Expression checkbox is checked, NoteTab will convert the pasted text into the corresponding pattern. You can bypass this conversion feature by holding down the Insert key while you paste the criteria in the field.

When the editor is configured to "stay-on-top", the Find and Replace dialog boxes are modal. In other words, you cannot return to the editor until you close the dialog box. When the program is not "stay-on-top", they are modeless (you can edit documents while the dialog boxes are open).

You can increase the width of the dialog box if necessary and save the new size by opening its Control (or System) menu and clicking on Save Window State.

Put a checkmark in the "Count Occurrences" checkbox if you don't want to replace text but just want to count the number of occurrences of the specified criteria.